﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002D1 RID: 721
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueUpdateReviveInfoScNotify : IMessage<ChessRogueUpdateReviveInfoScNotify>, IMessage, IEquatable<ChessRogueUpdateReviveInfoScNotify>, IDeepCloneable<ChessRogueUpdateReviveInfoScNotify>, IBufferMessage
	{
		// Token: 0x1700095A RID: 2394
		// (get) Token: 0x06002043 RID: 8259 RVA: 0x0005B9A7 File Offset: 0x00059BA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueUpdateReviveInfoScNotify> Parser
		{
			get
			{
				return ChessRogueUpdateReviveInfoScNotify._parser;
			}
		}

		// Token: 0x1700095B RID: 2395
		// (get) Token: 0x06002044 RID: 8260 RVA: 0x0005B9AE File Offset: 0x00059BAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueUpdateReviveInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700095C RID: 2396
		// (get) Token: 0x06002045 RID: 8261 RVA: 0x0005B9C0 File Offset: 0x00059BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueUpdateReviveInfoScNotify.Descriptor;
			}
		}

		// Token: 0x06002046 RID: 8262 RVA: 0x0005B9C7 File Offset: 0x00059BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateReviveInfoScNotify()
		{
		}

		// Token: 0x06002047 RID: 8263 RVA: 0x0005B9CF File Offset: 0x00059BCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateReviveInfoScNotify(ChessRogueUpdateReviveInfoScNotify other) : this()
		{
			this.reviveInfo_ = ((other.reviveInfo_ != null) ? other.reviveInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002048 RID: 8264 RVA: 0x0005BA04 File Offset: 0x00059C04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateReviveInfoScNotify Clone()
		{
			return new ChessRogueUpdateReviveInfoScNotify(this);
		}

		// Token: 0x1700095D RID: 2397
		// (get) Token: 0x06002049 RID: 8265 RVA: 0x0005BA0C File Offset: 0x00059C0C
		// (set) Token: 0x0600204A RID: 8266 RVA: 0x0005BA14 File Offset: 0x00059C14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAvatarReviveCost ReviveInfo
		{
			get
			{
				return this.reviveInfo_;
			}
			set
			{
				this.reviveInfo_ = value;
			}
		}

		// Token: 0x0600204B RID: 8267 RVA: 0x0005BA1D File Offset: 0x00059C1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueUpdateReviveInfoScNotify);
		}

		// Token: 0x0600204C RID: 8268 RVA: 0x0005BA2B File Offset: 0x00059C2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueUpdateReviveInfoScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.ReviveInfo, other.ReviveInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600204D RID: 8269 RVA: 0x0005BA60 File Offset: 0x00059C60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reviveInfo_ != null)
			{
				num ^= this.ReviveInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600204E RID: 8270 RVA: 0x0005BA9C File Offset: 0x00059C9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600204F RID: 8271 RVA: 0x0005BAA4 File Offset: 0x00059CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002050 RID: 8272 RVA: 0x0005BAAD File Offset: 0x00059CAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reviveInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.ReviveInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002051 RID: 8273 RVA: 0x0005BAE0 File Offset: 0x00059CE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reviveInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReviveInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002052 RID: 8274 RVA: 0x0005BB20 File Offset: 0x00059D20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueUpdateReviveInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reviveInfo_ != null)
			{
				if (this.reviveInfo_ == null)
				{
					this.ReviveInfo = new RogueAvatarReviveCost();
				}
				this.ReviveInfo.MergeFrom(other.ReviveInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002053 RID: 8275 RVA: 0x0005BB74 File Offset: 0x00059D74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002054 RID: 8276 RVA: 0x0005BB80 File Offset: 0x00059D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.reviveInfo_ == null)
					{
						this.ReviveInfo = new RogueAvatarReviveCost();
					}
					input.ReadMessage(this.ReviveInfo);
				}
			}
		}

		// Token: 0x04000D38 RID: 3384
		private static readonly MessageParser<ChessRogueUpdateReviveInfoScNotify> _parser = new MessageParser<ChessRogueUpdateReviveInfoScNotify>(() => new ChessRogueUpdateReviveInfoScNotify());

		// Token: 0x04000D39 RID: 3385
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000D3A RID: 3386
		public const int ReviveInfoFieldNumber = 12;

		// Token: 0x04000D3B RID: 3387
		private RogueAvatarReviveCost reviveInfo_;
	}
}
